package cc.taofoo.Design.ImgFactory;

import cc.taofoo.utils.XMLUtils;


public class Client {
    public static void main(String[] args) {
        /**
         * config.xml
         *  ...
         *  <image-reader-factory>GifReaderFactory</image-reader-factory>
         *  ...
         */
        ImageReaderFactory irf  = (ImageReaderFactory) XMLUtils.getBeanFromXml("image-reader-factory");
        ImageReader imageReader = irf.getImage();
        imageReader.readImage();
    }
}
